#!/usr/bin/python3

from tkinter import *
from tkinter import ttk
from tkinter import messagebox, filedialog, colorchooser

class Window():
    pass

    def __init__(self):
        self.root = Tk()

    def addMenuBar(self):
        '''
            Add Menu Bar for zcnote
        '''
        menubar = Menu(self.root)
        # file menu
        filemenu = Menu(menubar, tearoff=False)
        filemenu.add_command(label='open', command = None)
        filemenu.add_command(label='close', command = None)
        filemenu.add_separator()
        filemenu.add_command(label='exit', command=None)

        # edit menu
        editmenu = Menu(menubar, tearoff=False)
        editmenu.add_command(label='cut', command = None)
        editmenu.add_command(label='copy', command = None)
        editmenu.add_command(label='paste', command=None)

        # view menu
        viewmenu = Menu(menubar, tearoff=False)
        viewmenu.add_command(label='full', command = None)

        # tool menu
        toolmenu = Menu(menubar, tearoff=False)
        toolmenu.add_command(label='config', command = None)

        # help menu
        helpmenu = Menu(menubar, tearoff=False)
        helpmenu.add_command(label='homepage', command = None)

        menubar.add_cascade(label='file', menu=filemenu)
        menubar.add_cascade(label='edit', menu=editmenu)
        menubar.add_cascade(label='view', menu=viewmenu)
        menubar.add_cascade(label='tool', menu=toolmenu)
        menubar.add_cascade(label='help', menu=helpmenu)

        self.menubar = menubar

    def run(self):
        self.addMenuBar()
        self.root.config(menu=self.menubar)
        self.root.mainloop()

if __name__ == "__main__":
    window = Window()
    window.run()
